<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>我的微信</title>
    <script src="js/jquery-3.2.1.js"></script>
</head>
<body>
<span>规则内容</span>
<div>
    <a th:href="@{'/wecont/to/add'}">添加</a>
    <table border="1">
        <tr>
            <th>id</th>
            <th>关键字</th>
            <th>内容</th>
            <th>时间</th>
            <th>修改操作</th>
            <th>删除操作</th>
        </tr>
        <tr  th:each="weCont : ${weConts}">
            <td th:text="${weCont.id}">1</td>
            <td th:text="${weCont.name}">好</td>
            <td th:text="${weCont.content}">你好</td>
            <td th:text="${weCont.date}">2018-01-01 10:10:10</td>
            <td><a th:href="@{'/wecont/'+${weCont.id}+'/update'}">修改</a></td>
            <td><a th:href="@{'/wecont/'+${weCont.id}+'/delete'}">删除</a></td>
        </tr>
    </table>
</div>
</body>
<script>
$(function (){
});
</script>
</html>